#
#  Note that the backslash character has been used at the end of each line
#  to indicate continuation.
#
OBJECTS=\
portopen.o portread.o portwrite.o portbaud.o portflush.o portoutdrain.o\
portdelay.o portclose.o
#
CFLAGS += -g
#FFLAGS = 
#
ifeq (/usr/src/linux-1.2.12,\
$(wildcard /usr/src/linux-1.2.12 ))
CFLAGS := $(CFLAGS) -DUSE_OLD_SPECIAL_FLAGS
endif
ifeq (/usr/src/linux/include/digi.h,\
$(wildcard /usr/src/linux/include/digi.h ))
CFLAGS := $(CFLAGS) -DDIGI
endif
ifdef FS_SERIAL_CLOCAL
CFLAGS := $(CFLAGS) -DFS_SERIAL_CLOCAL
endif
#
#  The following line that has a ":" in it is a "dependency line".
#  What follows the dependency line are command lines.  The
#  one with the library name, fclib, before the ":" is the name of the
#  program to be built.  The modules that are referred to afcer the ":"
#  list what that program is dependent on.  References to variables are
#  signalled by a leading "$" character.
#
port.a: $(OBJECTS)
	touch port.a
	rm port.a
	ar -qc port.a $(OBJECTS)
	ar s port.a
